//
//  SAHttpApi.h
//  ShopAssistant
//
//  Created by FangGeek on 2017/11/15.
//  Copyright © 2017年 hyxt. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SAHTTPSessionManager.h"
@interface SAHttpApi : NSObject
//获取jsessionid
+ (void)requestGetJsessionidWithComeBack:(requestSuccess)requestSuccess;

//获取短信验证码
+ (void)requestGetMessageCodeWithPhone:(NSString *)phone WithComeBack:(requestSuccess)requestSuccess;

/**
 检查手机号是否存在

 @param phone <#phone description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void) requestCheakPhoneWithPhone:(NSString *)phone WithComeBack:(requestSuccess)requestSuccess;

/**
 绑定手机号码（同时做短信验证码校验）

 @param phone <#phone description#>
 @param code <#code description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void) requestBindPhoneWithPhone:(NSString *)phone WithMessageCode:(NSString *)code WithComeBack:(requestSuccess)requestSuccess;


/**
 获取用户隶属于的企业列表

 @param phone <#phone description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void) requestListWithPhone:(NSString *)phone WithComeBack:(requestSuccess)requestSuccess;


/**
 登出

 @param phone <#phone description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void) requestLogOutWithPhone:(NSString *)phone WithComeBack:(requestSuccess)requestSuccess;

/**
 获取用户信息

 @param phone <#phone description#>
 @param shopId <#shopId description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void) requestGetUserInfoWithPhone:(NSString *)phone WithShopId:(NSString *)shopId WithComeBack:(requestSuccess)requestSuccess;


/**
  获取APP用于跳转请求的链接路径

 @param type <#type description#>
 @param empId <#empId description#>
 @param appTo <#appTo description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void)requestGetHTTPURLWithNumber:(NSString *)type WithEmpId:(NSString *)empId WithAppTo:(NSString *)appTo WithComeBack:(requestSuccess)requestSuccess;

/**
 获取粉丝信息

 @param shopId <#shopId description#>
 @param userId <#userId description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void)requestGetFanUserInfoWithShopId:(NSString *)shopId WithHyUserId:(NSString *)userId WithComeBack:(requestSuccess)requestSuccess;


/**
 发送消息

 @param param <#param description#>
 @param requestSuccess <#requestSuccess description#>
 */
+ (void)requestSendMessgaeWithParaments:(NSDictionary *)param WithComeBack:(requestSuccess)requestSuccess;
@end
